package com.acme.homemonitoring;

/**
 * exercise 2: find a way to wire up mock Sensor / Light classes
 * TestLight and TestSensor in use
 */

public class MainWithTestStuff
{
	public static void main(String args[])
	{
		
		IntruderDetector detector = new IntruderDetector(ReallyLoudSiren.getInstance());
		detector.addRoom(new Room(detector, "Lounge room", 3, new TestLight("Lounge room"),new TestSensor(new TestLight("Lounge room"))));
		detector.addRoom(new Room(detector, "Study", 1, new TestLight("Study"),new TestSensor(new TestLight("Study"))));
		detector.report();
	}	
}
